package com.ruoyi.model.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据库连接基本信息对象 db_info
 * 
 * @author genghz
 * @date 2021-10-20
 */
public class DbInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据库ID */
    private Long dbId;

    /** 数据库连接串 */
    @Excel(name = "名称")
    private String dbName;

    /** 数据库连接串 */
    @Excel(name = "数据库连接串")
    private String dbUrl;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 密码 */
    @Excel(name = "密码")
    private String userPass;

    /** 模型数据库 */
    @Excel(name = "默认数据库")
    private String defaultSchema;

    public void setDbId(Long dbId) 
    {
        this.dbId = dbId;
    }

    public Long getDbId() 
    {
        return dbId;
    }
    public void setDbUrl(String dbUrl) 
    {
        this.dbUrl = dbUrl;
    }

    public String getDbUrl() 
    {
        return dbUrl;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setUserPass(String userPass) 
    {
        this.userPass = userPass;
    }

    public String getUserPass() 
    {
        return userPass;
    }
    public void setDefaultSchema(String defaultSchema) 
    {
        this.defaultSchema = defaultSchema;
    }

    public String getDefaultSchema() 
    {
        return defaultSchema;
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dbId", getDbId())
            .append("dbUrl", getDbUrl())
            .append("userName", getUserName())
            .append("userPass", getUserPass())
            .append("defaultSchema", getDefaultSchema())
            .toString();
    }
}
